//
//  ZCProjectResultCell.m
//  zctx
//
//  Created by apple on 15/10/8.
//  Copyright © 2015年 sanliang. All rights reserved.
//

#import "ZCProjectResultCell.h"

@implementation ZCProjectResultCell

- (void)awakeFromNib {
    // Initialization code
    self.selectionStyle = UITableViewCellSelectionStyleNone;
}

-(void)setResultStr:(NSString *)resultStr{
    _resultStr = resultStr;
    if ([_resultStr isEqualToString:@"1"]) {
        //合格
        
        [self.resultButton setTitleColor:MainColor forState:UIControlStateNormal];
        [self.resultButton setTitle:@"合格" forState:UIControlStateNormal];
        [self.resultButton setBackgroundImage:[UIImage imageNamed:@"main_green"] forState:UIControlStateNormal];
        
    }else{
        [self.resultButton setTitleColor:[UIColor redColor] forState:UIControlStateNormal];
        [self.resultButton setTitle:@"不合格" forState:UIControlStateNormal];
        [self.resultButton setBackgroundImage:[UIImage imageNamed:@"main_red"] forState:UIControlStateNormal];
    }
}
- (IBAction)ClickLookresultButton:(UIButton *)sender {
    if ([_delegate respondsToSelector:@selector(ClocklookResult)]) {
        [_delegate ClocklookResult];
    }

}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
